package cn.bx.bid.service;

import cn.bx.bid.dao.RoleDao;
import cn.bx.bid.entity.Page;
import cn.bx.bid.entity.Userrole;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

//M V C
@Service
@Scope("prototype")
public class RoleService {
	public static final int PAGE_SIZE = Page.PAGE_SIZE;
	@Resource
	private RoleDao dao;
	public List<Userrole> findALL() {
			return dao.findALL();
	}

	public static void main(String[] args) {
		RoleService r=new RoleService();
		List<Userrole> list = r.findALL();
		System.out.println(list);
	}
}
